package org.come.xinyuan;

import com.tool.role.RoleData;
import come.tool.JDialog.TiShiChuLi;
import org.come.Frame.ZhuFrame;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;

public class XiXinYuanJDialog implements TiShiChuLi {
    public XiXinYuanJDialog() {
    }

    @Override
    public void tipBox(boolean tishi, Object object) {
        if (tishi) {
            if (20000 > RoleData.getRoleData().getLoginResult().getCodecard().longValue()) {
                ZhuFrame.getZhuJpanel().addPrompt2("#R你的仙玉不足以支付洗点费用");
                return;
            }
            String sendmes = Agreement.getAgreement().XinYuanAgreement("D&" + object);
            SendMessageUntil.toServer(sendmes);
        }

    }
}
